import request from '@/utils/request'

export function report(params) {
  return request({
    url: 'report/getBsl',
    method: 'get',
    params
  })
}

export function expire(params) {
  return request({
    url: 'report/expire',
    method: 'get',
    params
  })
}

export function orderSale(params) {
  return request({
    url: 'report/orderSale',
    method: 'get',
    params
  })
}

export function soldOutEvaluation(params) {
  return request({
    url: 'report/soldOutEvaluation',
    method: 'get',
    params
  })
}

export function vendorSale(params) {
  return request({
    url: 'report/vendorSale',
    method: 'get',
    params
  })
}

export function exportBsl(params) {
  return request({
    url: '/report/export/bsl',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

export function exportExpire(params) {
  return request({
    url: '/report/export/expire',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

export function exportOrderSale(params) {
  return request({
    url: '/report/export/orderSale',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

export function exportSoldOutEvaluation(params) {
  return request({
    url: '/report/export/soldOutEvaluation',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

export function exportVendorSale(params) {
  return request({
    url: '/report/export/vendorSale',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

export default {
  report,
  exportBsl,
  expire,
  orderSale,
  soldOutEvaluation,
  vendorSale,
  exportExpire,
  exportOrderSale,
  exportSoldOutEvaluation,
  exportVendorSale
}
